{#**
 * 2007-2017 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2017 PrestaShop SA
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *#}
<div class="quicknav-container">
    <div class="quicknav-header">
        <div class="pull-left"><a href="#" data-toggle="sidebar" data-target=".sidebar">&times;</a></div>
        <h2>{{ "Quick navigation"|trans({}, 'Admin.Global') }}</h2>
    </div>
    <div class="quicknav-scroller">
        <table class="table table-condensed table-striped product quicknav-products">
            <thead>
                <tr class="column-headers">
                    <th class="hidden-xs hidden-sm hidden-md">
                        {{ "ID"|trans({}, 'Admin.Global') }}
                    </th>
                    <th>
                        {{ "Name"|trans({}, 'Admin.Global') }}
                    </th>
                    <th class="hidden-xs hidden-sm">
                        {{ "Price"|trans({}, 'Admin.Global') }}
                    </th>
                    {% if 'PS_STOCK_MANAGEMENT'|configuration %}
                        <th class="hidden-xs">
                            {{ "Quantity"|trans({}, 'Admin.Catalog.Feature') }}
                        </th>
                    {% endif %}
                </tr>
            </thead>
            <tbody>
                {% for product in products %}
                    <tr>
                        <td class="hidden-xs hidden-sm hidden-md">
                            <a href="{{ product.url|default('') }}#tab-step1">{{ product.id_product }}</a>
                        </td>
                        <td>
                            <a href="{{ product.url|default('') }}#tab-step1">{{ product.name|default('N/A'|trans({}, 'Admin.Global')) }}</a>
                        </td>
                        <td class="hidden-xs hidden-sm">
                            <a href="{{ product.url|default('') }}#tab-step2">{{ product.price|default('N/A'|trans({}, 'Admin.Global')) }}</a>
                        </td>
                        {% if 'PS_STOCK_MANAGEMENT'|configuration %}
                            <td class="hidden-xs product-sav-quantity"
                                productquantityvalue="{{ product.sav_quantity|default('') }}">
                                <a href="{{ product.url|default('') }}#tab-step3">
                                    {% if product.sav_quantity is defined and product.sav_quantity > 0 %}
                                        {{ product.sav_quantity }}
                                    {% else %}
                                        <span
                                            class="badge badge-danger">{{ product.sav_quantity|default('N/A'|trans({}, 'Admin.Global')) }}</span>
                                    {% endif %}
                                </a>
                            </td>
                        {% endif %}
                    </tr>
                {% else %}
                    <tr><td colspan="5">
                        {{ "There is no result for this search. Update your filters to view other products."|trans({}, 'Admin.Catalog.Notification') }}
                    </td></tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
    <div class="quicknav-fixed-bottom navbar-form-footer">
        {{ render(controller('PrestaShopBundle:Admin\\Common:pagination',
            {'limit': limit, 'offset': offset, 'total': total, 'caller_parameters': {'_route': 'admin_product_list', 'view': 'quicknav'}, 'view': 'quicknav'}))
        }}
    </div>
</div>
